package com.walterweimod.auxiliary_attributes.event.new_event;

import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.LivingEntity;
import net.minecraftforge.event.entity.living.LivingEvent;

public class LivingAfterDamageEvent extends LivingEvent {
    private final DamageSource source;
    private final float amount;

    public LivingAfterDamageEvent(
            LivingEntity entity,
            DamageSource source,
            float amount) {
        super(entity);
        this.source = source;
        this.amount = amount;
    }

    public DamageSource getSource() { return source; }

    public float getAmount() { return amount; }
}
